package com.china.springServer.service.impl;

import com.china.springServer.dao.UserDao;
import com.china.springServer.entity.User;
import com.china.springServer.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @fileName: UserServiceImpl
 * @author: LmR
 * @createDate: 2023/10/22 20:55
 * @Desc:
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    @Override
    public int addUser(User user) {

        return userDao.addUser(user);
    }

    @Override
    public int delUser(String name) {
        return userDao.delUser(name);
    }
}
